package com.ruoyi.land.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.stereotype.Component;

/**
 * 地块信息对象 argo_land
 * 
 * @author qhr
 * @date 2024-02-20
 */
@Component
public class ArgoLand extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地块代号 */
    private Long id;

    /** 地块名 */
    @Excel(name = "地块名")
    private String landName;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 基地代号 */
    @Excel(name = "基地代号")
    private Long deptId;

    /** 农作物代号 */
    @Excel(name = "农作物代号")
    private Long cropsId;

    /** 状态(0 闲置,1 农闲期,2 农忙期)  */
    @Excel(name = "状态(0 闲置,1 农闲期,2 农忙期) ")
    private Long state;

    /** 位置 */
    @Excel(name = "位置")
    private String address;

    /** 农业类型 */
    @Excel(name = "农业类型")
    private String argoType;

    /** 创建人 */
    private Long createUser;

    /** 更新人 */
    private Long updateUser;

    /** 0 逻辑删除,1 删除 */
    private String delFlag;

    /** 基地名称*/
    @Excel(name = "基地名")
    private String deptName;

    /** 作物名称*/
    @Excel(name = "农作物")
    private String cropsName;

    public String getDeptName() {
        return deptName;
    }
    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getCropsName() {
        return cropsName;
    }

    public void setCropsName(String cropsName) {
        this.cropsName = cropsName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setLandName(String landName) 
    {
        this.landName = landName;
    }

    public String getLandName() 
    {
        return landName;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setCropsId(Long cropsId) 
    {
        this.cropsId = cropsId;
    }

    public Long getCropsId() 
    {
        return cropsId;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setArgoType(String argoType) 
    {
        this.argoType = argoType;
    }

    public String getArgoType() 
    {
        return argoType;
    }
    public void setCreateUser(Long createUser) 
    {
        this.createUser = createUser;
    }

    public Long getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(Long updateUser) 
    {
        this.updateUser = updateUser;
    }

    public Long getUpdateUser() 
    {
        return updateUser;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("landName", getLandName())
            .append("deptName",getDeptName())
            .append("image", getImage())
            .append("deptId", getDeptId())
            .append("deptName",getDeptName())
            .append("cropsId", getCropsId())
            .append("state", getState())
            .append("address", getAddress())
            .append("argoType", getArgoType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createUser", getCreateUser())
            .append("updateUser", getUpdateUser())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
